package com.campus.constant;

/**
 * 正则表达式常量
 *
 * @author TaiZai
 * @data 2024/10/29 11:10
 */
public class RegularConstant {
    // 校验用户名正则
    public static final String USERNAME_REGEX = "^[\\w]{2,9}$";
    // 校验密码正则
    public static final String PASSWORD_REGEX = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{6,10}$";
    // 校验邮箱正则
    public static final String EMAIL_REGEX = "^[1-9]\\d{3,11}@qq\\.com$";
    // 校验手机号正则
    public static final String PHONE_REGEX = "^1[35789]\\d{9}$";
}
